﻿using System;
using System.Net;
using Newtonsoft.Json;
using System.Collections.Generic;
using Tulde.Core;

namespace Tulde.MP3tunes.ViewModel
{
    [JsonObject()]
    public class AlbumCollection : ViewModelCollection, ICacheable
    {
        [JsonProperty("albumList")]
        public List<Album> Albums { get; set; }

        public AlbumCollection()
        {
            this.Albums = new List<Album>();
            this.Summary = new ResultSummary();
           
        }

        #region ICacheable Members

        public bool ShouldCache
        {
            get {
                return this.Summary.TotalResults > 0;
            }

        }

        #endregion
    }
}
